//
//  QTSingleton.m
//  掌上汽车
//
//  Created by dlios on 15-9-6.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TLSSingleton.h"

@implementation TLSSingleton
+ (instancetype)shareSingleton{
    static TLSSingleton *singleton;
    static dispatch_once_t oneToKen;
    dispatch_once(&oneToKen, ^{
        singleton = [[TLSSingleton alloc] init];
        NSUserDefaults *isDayDefault = [NSUserDefaults standardUserDefaults];
        singleton.isNight = [[isDayDefault objectForKey:@"isNight"] integerValue];
    });
    return singleton;
}
@end
